﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="HyperVManager._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Hyper-V Management Console</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="updatePanel" runat="server" UpdateMode="Conditional">
        <Triggers>
        </Triggers>
        <ContentTemplate>
            <asp:DataGrid ID="VMDataGrid" runat="server" CellPadding="5" ForeColor="#333333"
                GridLines="None" AutoGenerateColumns="False" OnItemCommand="VMDataGrid_ItemCommand">
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditItemStyle BackColor="#999999" />
                <SelectedItemStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <AlternatingItemStyle BackColor="White" ForeColor="#284775" />
                <ItemStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                    <asp:BoundColumn DataField="Name" HeaderText="Name" ReadOnly="True"></asp:BoundColumn>
                    <asp:BoundColumn DataField="State" HeaderText="State" ReadOnly="True"></asp:BoundColumn>
                    <asp:BoundColumn DataField="CpuLoad" HeaderText="CPU Load" ReadOnly="True"></asp:BoundColumn>
                    <asp:BoundColumn DataField="Memory" HeaderText="Memory" ReadOnly="True"></asp:BoundColumn>
                    <asp:BoundColumn DataField="UpTime" HeaderText="Uptime" ReadOnly="True"></asp:BoundColumn>
                    <asp:ButtonColumn Text="Start" CommandName="StartVM"></asp:ButtonColumn>
                    <asp:ButtonColumn Text="Stop" CommandName="StopVM"></asp:ButtonColumn>
                    <asp:ButtonColumn Text="Pause" CommandName="PauseVM"></asp:ButtonColumn>
                    <asp:ButtonColumn Text="Suspend" CommandName="SuspendVM"></asp:ButtonColumn>
                    <asp:BoundColumn DataField="Status" HeaderText="Status" ReadOnly="true"></asp:BoundColumn>
                </Columns>
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            </asp:DataGrid>
            <br />
            <asp:LinkButton ID="RefreshButton" runat="server" OnClick="RefreshButton_OnClick">Refresh</asp:LinkButton>
        </ContentTemplate>
    </asp:UpdatePanel>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="updatePanel">
        <ProgressTemplate>
            <img src="images/ajax-loader.gif" border="0" alt="AJAX indicator" />
        </ProgressTemplate>
    </asp:UpdateProgress>
    </form>
</body>
</html>
